package com.jadcon.bedbreakfast.domain;


import java.util.ArrayList;
import java.util.List;

public class Suite {
	
	private List<Guest> guestList = new ArrayList<Guest>();						   
	private String name;
	private int number;
	private int beds;
	private int cost;
	private String description;
	private String imageName;
	
	public Suite(){}
	
	public Suite (String name, int number, int beds, String description, String imageName, int cost)	{
		
		this.name = name;
		this.number = number;
		this.beds = beds;
		this.description = description;
		this.imageName = imageName;
		this.cost = cost;
		
	}

	
	public void addGuest(Guest guest) {
		
		if (guestList.size() == beds) {
			throw new RuntimeException("Room is full!");
		}
		guestList.add(guest);
	}
	
	public void removeGuest(Guest guest){
		guestList.remove(guest);
	}
	
	public int getBedsAvailable() {
		return (beds-guestList.size());
	}
	
	public int getTotalGuests() {
		return (guestList.size());
	}
	
	public List<Guest> getGuestList() {
		return guestList;
	}


	public int getBeds() {
		return beds;
	}



	public int getCost() {
		return cost;
	}

	public String getDescription() {
		return description;
	}

	public String getImageName() {
		return imageName;
	}

	public int getNumber() {
		return number;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}
	
	
	
}
